﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfShopInfoSet.aspx.cs" Inherits="msBsc.WebUi.wfShopInfoSet" %>

<!DOCTYPE HTML>
<html>
<head id="Head1" runat="server"> 
    <title>商家资料编辑</title>
    <link rel="shortcut icon" href="/themes/Style1/Image/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="/??themes/Style1/StyleQt.css,themes/Style1/reg2.css," />  
    <script src="/??jqPlugin/js/jquery-1.8.3.min.js,js/jBase.js,js/jBPage.js,themes/Style1/jsQt.js,jqPlugin/layer/layer.min.js" type="text/javascript"></script>
    <%--
    <link href="/jqPlugin/kindeditor/themes/default/default.css" type="text/css" rel="stylesheet" />
    <script src='/??jqPlugin/kindeditor/kindeditor.js,jqPlugin/kindeditor/lang/zh_CN.js'
        type='text/javascript'></script>
--%>
    <!--head fix rgn--> 
    <script type="text/javascript">


//        K = KindEditor;
//        K.DEBUG = true;
//        K.basePath = K.options.basePath = '/jqPlugin/kindeditor/';
//        K.options.themesPath = K.options.basePath + 'themes/';
//        K.options.langPath = K.options.basePath + 'lang/';
//        K.options.pluginsPath = K.options.basePath + 'plugins/';
//        var editorfile;

        $(window).load(function () {

            $("#btnSave").click(function () {
                var loadi = layer.load('正在保存中…');
                try {
                    function closeload() { layer.close(loadi); }
                    if (getAllValiInp()) {
                        var _jsParam = new jsonRow();
                        var _jsPost = new jsonRow();
                        _jsParam.AddCell("ACTION", "btnSave");
                        GetFormJson("J_InfoForm", _jsPost);
//                        _jsPost.AddCell("LOGO_IMG_URL", $("#logo_img_selected img").attr("for"));
                        ajaxComm(_jsParam, _jsPost, closeload);
                    } else {
                        closeload();
                    }
                }
                catch (err) {
                    layer.close(loadi);
                }
            });

//            $("#btnEdit").click(function () {
//                var _jsParam = new jsonRow();
//                _jsParam.AddCell("ACTION", "btnEdit");
//                ajaxComm(_jsParam);
//            });

//            editorfile = K.editor({
//                allowFileManager: true
//            });
//            editorfile.fileManagerJson = '/pgajax.axd?F_MANA=1&rType1=0&rType2=0&COOKATHID=' + (typeof (cookesc) == "undefined" ? "" : cookesc)
//                                    + "&fType=" + "image";

//            $.ploadFile("kindeditor", function (script, textStatus) {
//                $.setUploadFile('btnupImg', { FileId: '', RelId: "", rType1: '0', rType2: '' }, function (data) {
//                    if (data.url) {
//                        $('#logo_img_selected').empty().html('<img alt="" src="' + data.url + '" for="' + data.url + '" width="100%" height="100%">');
//                    }
//                });
//            });

//            $('#J_logo_selectImage').click(function () {
//                editorfile.loadPlugin('filemanager', function () {
//                    editorfile.plugin.filemanagerDialog({
//                        viewType: 'VIEW',
//                        dirName: 'image',
//                        clickFn: function (url, title) {
//                            $('#logo_img_selected').empty().html('<img alt="" src="' + url + '" for="' + url + '" width="100%" height="100%">');
//                            editorfile.hideDialog();
//                        }
//                    });
//                });

//                //                editorHead.loadPlugin('insertfile', function () {
//                //                    editorHead.plugin.fileDialog({
//                //                        fileUrl: $('#logo_img_selected img').attr('src'),
//                //                        clickFn: function (url, title) {
//                //                            $('#logo_img_selected').empty().html('<img alt="" src="' + url + '" for="' + url + '" width="100%" height="100%">');
//                //                            editorHead.hideDialog();
//                //                        }
//                //                    });
//                //                });
//            });
            setAllValiInp();
        });
         
           
    </script> 
</head>
<body > 
    <div id="mallPage" class="tms-page mallAct tmall-  page-not-market">
        <!-- -->
        <!--商城通用顶通-->
        <%=new msBsc.WebUi.Code.QtHtmlGet().GetHeaderTopHtml()%>
        <%=new msBsc.WebUi.Code.QtHtmlGet().GetHeaderLogoHtml()%>

        
        <div id="content" class="content" style=" padding-top: 3px;">
            <div class="page lang-zh-S">
                <div id="mytaobao-panel" class="grid-c2">
                    <div class="col-main" id="J_Col_Main" style="padding-bottom: 0;">
                        <div class="main-wrap">
                            <div id="main-content">
                            
                    <!-- BEGIN col-main -->
                     
	
		<div class="form-list form-main-list" id="divInputInfo">
			<form method="post" action="#" id="J_InfoForm"> 
					 
					<div class="form-group" style="">
						<div class="form-item">
							<span class="form-label form-label-b tsl" >商家基本信息</span> 
						</div>
						<div class="form-item">
							<span class="form-label tsl" >店铺类型：</span>
							<span id="spnCOMM_TYPE_TXT" style="color:Blue;"></span>
							 
						</div>
						<div class="form-item">
							<span class="form-label tsl" >掌柜帐号：</span>
							<span id="spnUSER_NME" style="color:Blue;">0</span>
							 
						</div>
						
						<div class="form-item">
							<span class="form-label tsl"  >商家邮箱地址：</span>
							<span id="spnCONTACTS_EMAIL" style="color:Blue;"></span>
						</div>
						<div class="form-item">
							<span class="form-label tsl"  >店铺名称：</span>
							<span id="spnCOMM_TENANT_NME" style="color:Blue;"></span>
						</div>
						<div class="form-item">
							<span class="form-label tsl"  >店铺所在地：</span>
							<span id="spnZONE_DESC" style="color:Blue;"></span>
						</div>
						<div class="form-item">
							<span class="form-label tsl"  >已缴纳保证金：</span>
							<span id="spnDEPOSIT_AMT" style="color:#c40000; font-size:14px; font-weight:bold;">0.00</span> 元 <span id="spndoPayDeposit" style="font-size:14px; font-weight:bold;"></span>
						</div>
					</div> 
					<div class="form-group" id="divCompany" style="display:none;">
						<div class="form-item">
							<span class="form-label form-label-b tsl" >商家公司信息</span> 
						</div> 
						<div class="form-item">
							<span class="form-label tsl"  >公司中文名称：</span>
							<span id="spnCOMPANY_NME_CN" style="color:Blue;"></span> 
						</div>
						<div class="form-item">
							<span class="form-label tsl"  >公司英文名称：</span>
							<span id="spnCOMPANY_NME_EN" style="color:Blue;"></span> 
						</div>
						<div class="form-item">
							<span class="form-label tsl"  >法人代表：</span>
							<span id="spnLEGAL_OWNER" style="color:Blue;"></span> 
						</div>
						<div class="form-item">
							<span class="form-label tsl"  >注册资金：</span>
							<span id="spnREGISTERED_CAPITAL" style="color:Blue;"></span> 
						</div>
						<div class="form-item">
							<span class="form-label tsl"  >注册地址：</span>
							<span id="spnREGISTERED_ADDRESS" style="color:Blue;"></span> 
						</div>
						<div class="form-item">
							<span class="form-label tsl"  >注册时间：</span>
							<span id="spnREGISTERED_DT" style="color:Blue;"></span> 
						</div>
						<div class="form-item">
							<span class="form-label tsl"  >工商执照编号：</span>
							<span id="spnBUSINESS_LICENSE_NO" style="color:Blue;"></span> 
						</div>
						<div class="form-item">
							<span class="form-label tsl"  >税务登记证号：</span>
							<span id="spnTAX_REGISTRATION_NO" style="color:Blue;"></span> 
						</div>
					</div> 
					<div class="form-group">
						<div class="form-item">
							<span class="form-label form-label-b tsl" >商家联系信息</span> 
						</div> 
						<div class="form-item">
							<span class="form-label tsl" >商家联系人：</span>
						<input class="form-text vali-inp" id="txtCONTACTS" name="txtCONTACTS" type="text" value="" reg-exp="^^\s*$|([\u4E00-\uFA29]|[\uE7C7-\uE7F3]|[a-zA-Z]){2,15}$" right-msg="允许5-16个字符，可用中文、字母！" /> 
							 
						</div> 
					    <div class="form-item">
						    <span class="form-label tsl" >商家详细地址</span> 
						    <textarea class="form-text vali-inp" id="txtCONTACTS_ADDRESS" name="txtCONTACTS_ADDRESS" style="width:350px;" type="text" value=""></textarea>
					    </div>
					    <div class="form-item">
						    <span class="form-label tsl" >联系电话(座机)</span>
						    <input class="form-text vali-inp" id="txtCONTACTS_TEL" name="txtCONTACTS_TEL" style="width:180px;" type="text" value=""  />
					    </div> 
					    <div class="form-item">
						    <span class="form-label tsl" >联系电话(手机)</span>
						    <input class="form-text vali-inp" id="txtCONTACTS_PHONE" name="txtCONTACTS_PHONE" style="width:180px;" type="text" value=""  reg-exp="^\s*$|^1[0-9]{10}$" right-msg="请填写11位数字" />
					    </div> 
					</div>
					<div class="form-group">
						<div class="form-item">
							<span class="form-label form-label-b tsl" >商家结算信息</span> 
						</div> 
						<div class="form-item">
							<span class="form-label tsl" >商家支付宝帐号：</span>
						<input class="form-text vali-inp" id="txtALIPAY_MAIL" name="txtALIPAY_MAIL" style="width:200px;" type="text" value=""  reg-exp="^^\s*$|[\w-]+(\.[\w-]+)*@([\w-]+\.)+(com|cn|net)$" right-msg="请填写正确的邮箱地址" /> 
						</div> 
						<div class="form-item">
							<span class="form-label tsl" >商家开户银行：</span>
							<select name="dplBANK_CDE" id="dplBANK_CDE" class="comSel" style="width: 200px;">
                                        </select>
						</div> 
						<div class="form-item">
							<span class="form-label tsl" >商家银行帐号：</span>
							<input class="form-text    " id="txtBANK_ACCOUNT_NO" name="txtBANK_ACCOUNT_NO"  style=" "  type="text" value="" /> 
							 
						</div> 
						<div class="form-item">
							<span class="form-label tsl" >商家账户名：</span>
							<input class="form-text  " id="txtBANK_ACCOUNT_NME" name="txtBANK_ACCOUNT_NME"  style=" "  type="text" value="" /> 
							 
						</div>  
					</div>
					<div class="form-group"> 
						<div class="form-item">
						<%--	<button type="button" id="btnEdit" class="btn btn-large tsl"  >编 辑</button> --%>
							<button type="button" id="btnSave" class="btn btn-large tsl"  >保 存</button> 
						</div>
					</div>
				</form>
			</div>

                    <!-- end col-main -->
                            </div>
                        </div>
                    </div>
                    <div class="col-sub" id="J_Col_Sub">
                        <%=new msBsc.WebUi.Code.QtHtmlGet().GetDealerMenu()%>
                    </div>
                </div>
                <!-- end mytaobao-panel -->
            </div>
        </div>
        
        <div style="height: 15px; clear: both;">
        </div>


<%--

<div class="page lang-zh-S" style=" background-color:#fff; margin-top:10px; padding:10px;">

		 
          
	<div class="content">
    <input type="hidden" value="" id="txtScoreQty" />
            

		<div class="email-sent" id="divMailSend" style="display:none;  padding:20px;">
			<h2 ><span class="tsl" >您的密码已重置！</span>&nbsp;<em><span id="spnMailNme"></span></em></h2>
			<p class="tsl"></p>
			<div class="email-sent-op">
				<input type="hidden" id="Hidden1" value="" />
				<input type="hidden" id="J_UserNumId" value="" />
				<a class="btn tsl" target="_self"  href="/c_CustUserLogin.htm?returnurl=/c_CustManager.htm" id="J_GoToEmailWeb"  >使用新密码登录</a>
				<div class="email-sent-noreceived"> 
				</div>
			</div>
			<div class="email-sent-op"> 
			</div>
			</div>


		</div>
	</div>
	
	--%>
        <%=new msBsc.WebUi.Code.QtHtmlGet().GetFloorHtml()%> 
    </div>

    <!-- foot script --> 
</body>
</html>
